import { computed } from 'vue';
import { useI18n } from 'vue-i18n';


export default function useCommonDict() {
  const { t } = useI18n();
  const densityDict = computed(() => [
    {
      name: t('searchTable.size.mini'),
      value: 'mini',
    },
    {
      name: t('searchTable.size.small'),
      value: 'small',
    },
    {
      name: t('searchTable.size.medium'),
      value: 'medium',
    },
    {
      name: t('searchTable.size.large'),
      value: 'large',
    },
  ])
  return {
    densityDict,
  };
}